import { ApiProperty } from '@nestjs/swagger';
import { IsOptional, IsString, IsBoolean, MaxLength, IsPhoneNumber } from 'class-validator';

export class UpdateUserDto {
  @ApiProperty({
    description: 'User display name',
    required: false,
    maxLength: 64,
  })
  @IsOptional()
  @IsString()
  @MaxLength(64)
  displayName?: string;

  @ApiProperty({
    description: 'User phone number',
    required: false,
  })
  @IsOptional()
  @IsPhoneNumber('CN')
  phone?: string;

  @ApiProperty({
    description: 'User active status (admin only)',
    required: false,
  })
  @IsOptional()
  @IsBoolean()
  isActive?: boolean;
}
